import React from 'react'

function userAuth(Com) {
    const token=localStorage.getItem('token');

  return ()=>{
    if(token){
        return <Com></Com>
    }
    else{
        
    }
  }
}

export default userAuth
